<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<System.Collections.Generic.IEnumerable<Myotragus.Store.Model.Domain.ICategory>>"
	MasterPageFile="~/Views/Shared/Site.Master" %>

<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent">
	<%= Resources.Pages.Categories %>
</asp:Content>
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
	<h2>
		<%= Resources.Pages.Categories %>
	</h2>
	<table>
		<tr>
			<th>
			</th>
			<th>
				Name
			</th>
		</tr>
		<% foreach (var item in Model) { %>
		
			<tr>
				<td>
					<%= Html.ActionLink("Edit", "Edit", new { id=item.Id }) %> |
					<%= Html.ActionLink("Details", "Details", new { id=item.Id })%> |
					<%= Html.ActionLink("Delete", "Delete", new {  id=item.Id })%>				
				</td>
				<td>
					<%= Html.Encode(item.Name) %>
				</td>
			</tr>
		
		<% } %>
    </table>

    <p>
        <%= Html.ActionLink(Resources.Actions.Add, "Create")%>
    </p>
</asp:Content>
